package Brid;

import com.itheima.behavior.Behavior;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class Wuya extends Brid{
    @Resource(name = "WuyaBehavior")
     Behavior flyable;
    public void tofly(){
        this.flyable.fly();
    }
}
